package org.tinygroup.dbf;

import java.io.File;
import java.io.IOException;

/**
 * Dbf输出器
 * Created by luoguo on 2014/7/10.
 */
public interface DbfWriter {
    int NAME_LENGTH = 10;
    int RECORD_COUNT_LENGTH = 4;
    int HEADER_LENGTH_LENGTH = 2;
    int RECORD_LENGTH_LENGTH = 2;
    int START_YEAR = 1900;
    int HEADER_END_CHAR = 13;

    void writeDbf(DbfDocument dbfDocument, File file, String encode) throws IOException;

    void writeDbf(DbfDocument dbfDocument, String fileName, String encode) throws IOException;
}
